package com.yanliang.client;

import com.yanliang.service.UserService;

/**
 * @author yanliang
 * @date 5/23/20202:59 PM
 */
public class ClientBootStrap {

	public static void main(String[] args) throws InterruptedException {
		RpcConsumer rpcConsumer = new RpcConsumer();
		UserService proxy = (UserService) rpcConsumer.createProxy(UserService.class, UserService.class.getName());

		while (true){
			System.out.println(proxy.sayHello("success or fail?"));
			Thread.sleep(2000);
		}
	}
}
